#pragma warning(disable:4996)
#include<stdio.h>
int main()
{
	int r;
	while (scanf("%d", &r), r > 0){
		printf("周长 = %lf\n",3.14*2*r);
		printf("面积 = %lf\n",3.14 * r * r);
	}
	return 0;
}